var faceoz = require('ui/faceoz');
var _current_page_name = 'show_big_image_for_trend';
var _win = null;
var _containing_tab = null;
var _trend_url = "";

/*
 * create image view controls
 */
function _init_controls() {
	try {
		_image_view = Ti.UI.createImageView({
			image : _trend_url,
			width : faceoz.screen_height,
			height : faceoz.screen_width
		});
		_win.add(_image_view);
	} catch(err) {
		faceoz.process_simple_error_message(err, _current_page_name + ':_init_controls');
		return;
	}
}

/*
 * create module window
 */
function show_big_image_for_trend(args) {
	_trend_url = args.trend_url;
	_containing_tab = args.containing_tab;
	_win = Ti.UI.createWindow({
		orientationModes: [Titanium.UI.LANDSCAPE_LEFT],
		title : 'Trend',
		containing_tab : args.containing_tab,
		tabBarHidden : true
	});
	_init_controls();
	return _win;
}

module.exports = show_big_image_for_trend;
